/**
 * 
 */
package pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 头条推荐
 * 
 * @author 81504
 * 
 */
public class News {
	/**
	 * 主键id
	 */
	private Integer id;
	/**
	 * 主题
	 */
	private String unit;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 内容
	 */
	private String content;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 创建用户id
	 */
	private Integer uId;

	// ====================构造=====================

	public News() {

	}

	public News(Integer id, String unit, String title, String content,
			Date createTime, Integer uId) {
		super();
		this.id = id;
		this.unit = unit;
		this.title = title;
		this.content = content;
		this.createTime = createTime;
		this.uId = uId;
	}

	// ====================封装=====================

	public Integer getuId() {
		return uId;
	}

	public void setuId(Integer uId) {
		this.uId = uId;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Override
	public String toString() {
		return "News [id=" + id + ", unit=" + unit + ", title=" + title
				+ ", content=" + content + ", createTime=" + createTime
				+ ", uId=" + uId + "]";
	}


}
